package com.google.jguery.client.query;

import java.util.Set;

import com.google.jguery.client.common.FieldText;

public abstract class SimpleQuery extends Query {

	String field;
	
	/**
	 * the text of term to search for
	 */
	String text;
	FieldText ft;
	double boost = 1.0;
	
	public SimpleQuery(String fieldName, String text, double boost) {
		this.field = fieldName;
		this.text = text;
		ft = new FieldText(fieldName, text);
		this.boost = boost;		
	}
	
	public SimpleQuery() {
	}

	public String toString() {
		return this.getClass().getName() + "("
				+ field + ","
				+ text + ","
				+ boost 
				+ ")";
	}

	@Override
	public Set<FieldText> getAllTerms() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Query normalize() {
		// TODO need to build this
		return null;
	}
}